﻿using System.Linq;
using System.Threading.Tasks;
using System;

namespace Hangfire_Demo.Data
{
    public class CollectService
    {

        public Task<Device[]> GetCollectDataAsync(DateTime startDate)
        {
            var rng = new Random();
            return Task.FromResult(Enumerable.Range(1, 5).Select(index => new Device
            {
                number = 0,
            }).ToArray());
        }
    }
}
